﻿@using zichan.Entity
@model zichan.Entity.ServerInfo
@{
    ViewBag.Title = "partServer_Details";
}
<div class="col-md-6">
    <div class="col-md-12 form-section">
        <h3 >更多信息</h3>
        </div>
        @using (Html.BeginForm("partServer_Details", "RepertoryManage"))
        {
            @Html.HiddenFor(o => o.AssetId)
            <div class="row" style="margin-top:5px;">
                <div class="form-group ">
                    <label class="col-md-3 control-label xh">品牌:</label>
                    <div class="col-md-9">
                        @Html.TextBoxFor(o => o.Brand, new { @class = "form-control" })
                        <span class="help-block">
                            @Html.ValidationMessageFor(o => o.Brand)
                        </span>
                    </div>
                </div>
            </div>
            <div class="row" style="margin-top:5px;">
                <div class="form-group ">
                    <label class="col-md-3 control-label xh">型号:</label>
                    <div class="col-md-9">
                        @Html.TextBoxFor(o => o.Version, new { @class = "form-control" })
                        <span class="help-block">
                            @Html.ValidationMessageFor(o => o.Version)
                        </span>
                    </div>
                </div>
            </div>
            <div class="row" style="margin-top:5px;">
                <div class="form-group ">
                    <label class="col-md-3 control-label xh">序列号:</label>
                    <div class="col-md-9">
                        @Html.TextBoxFor(o => o.SerialNumber, new { @class = "form-control" })
                        <span class="help-block">
                            @Html.ValidationMessageFor(o => o.SerialNumber)
                        </span>
                    </div>
                </div>
            </div>
            <div class="row" style="margin-top:5px;">
                <div class="form-group ">
                    <label class="col-md-3 control-label xh">U数:</label>
                    <div class="col-md-9">
                        @Html.TextBoxFor(o => o.U_Number, new { @class = "form-control" })
                        <span class="help-block">
                            @Html.ValidationMessageFor(o => o.U_Number)
                        </span>
                    </div>
                </div>
            </div>
            <div class="row" style="margin-top:5px;">
                <div class="form-group ">
                    <label class="col-md-3 control-label xh">CPU:</label>
                    <div class="col-md-9">
                        @Html.TextBoxFor(o => o.CPU, new { @class = "form-control" })
                        <span class="help-block">
                            @Html.ValidationMessageFor(o => o.CPU)
                        </span>
                    </div>
                </div>
            </div>
            <div class="row" style="margin-top:5px;">
                <div class="form-group ">
                    <label class="col-md-3 control-label xh">内存:</label>
                    <div class="col-md-9">
                        @Html.TextBoxFor(o => o.Memory, new { @class = "form-control" })
                        <span class="help-block">
                            @Html.ValidationMessageFor(o => o.Memory)
                        </span>
                    </div>
                </div>
            </div>
            <div class="row" style="margin-top:5px;">
                <div class="form-group ">
                    <label class="col-md-3 control-label xh">硬盘:</label>
                    <div class="col-md-9">
                        @Html.TextBoxFor(o => o.HardDisk, new { @class = "form-control" })
                        <span class="help-block">
                            @Html.ValidationMessageFor(o => o.HardDisk)
                        </span>
                    </div>
                </div>
            </div>
            <div class="row" style="margin-top:5px;">
                <div class="form-group ">
                    <label class="col-md-3 control-label xh">RAID卡:</label>
                    <div class="col-md-9">
                        @Html.TextBoxFor(o => o.HardWareRAID, new { @class = "form-control" })
                        <span class="help-block">
                            @Html.ValidationMessageFor(o => o.HardWareRAID)
                        </span>
                    </div>
                </div>
            </div>
            <div class="row" style="margin-top:5px;">
                <div class="form-group ">
                    <label class="col-md-3 control-label xh">网口:</label>
                    <div class="col-md-9">
                        @Html.TextBoxFor(o => o.Comb, new { @class = "form-control" })
                        <span class="help-block">
                            @Html.ValidationMessageFor(o => o.Comb)
                        </span>
                    </div>
                </div>
            </div>
            <div class="row" style="margin-top:5px;">
                <div class="form-group ">
                    <label class="col-md-3 control-label xh">出厂时间:</label>
                    <div class="col-md-9">
                       <input type="text" name="DeliveryTime" id="DeliveryTime" class = "form-control" placeholder = "如：2016/1/1" value="@Model.DeliveryTime.ToShortDateString()" />
                         @*<span class="col-md-addtime DeliveryTime">
                                <i class="fa fa-calendar bigger-110 "></i>
                            </span>*@
                        <span class="help-block">
                            @Html.ValidationMessageFor(o => o.DeliveryTime)
                        </span>
                    </div>
                </div>
            </div>
            <div class="row" style="margin-top:5px;">
                <div class="form-group ">
                    <label class="col-md-3 control-label xh">过保时间:</label>
                    <div class="col-md-9">
                        <input type="text" name="WarrantyTime" id="WarrantyTime" class="form-control" placeholder="如：2016/1/1" value="@Model.WarrantyTime.ToShortDateString()" />
                         @*<span class="col-md-addtime WarrantyTime">
                                <i class="fa fa-calendar bigger-110 "></i>
                            </span>*@
                        <span class="help-block">
                            @Html.ValidationMessageFor(o => o.WarrantyTime)
                        </span>
                    </div>
                </div>
            </div>
            <div class="row" style="margin-top:5px;">
                <div class="form-group ">
                    <label class="col-md-3 control-label">管理员:</label>
                    <div class="col-md-9">
                        @Html.DropDownList("AdminiStratorId", (SelectList)ViewBag.Staffs, "请选择", new { @class = "form-control" })
                    </div>
                </div>
            </div>
            <div class="row" style="margin-top:5px;">
                <div class="col-md-offset-3 col-md-9">
                    <button type="submit" class="btn green">提交</button>
                    <a href="/RepertoryManage/Index" class="btn default">返回</a>
                </div>
            </div>
        }

    </div>
